﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MystyleList.aspx.cs" Inherits="Com.CMS263.Web.manage.MyStyle.MystyleList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
  <link href="../style/main.css" rel="stylesheet" type="text/css" />
    <link href="../common/validator.css" rel="stylesheet" type="text/css" />
    <script language="javascript" src="../js/jquery-1.4.2.min.js"></script>
    <title></title>
    <script language="javascript" >
        function del(id) {
            $.post("delstyle.ashx", { id: id }, function(data) {
                if (data == "1") {
                    alert('删除成功');
                    $("#tr" + id).remove();
                } else {
                    alert("删除失败请重试");
                }
            })
            return false;
        }
    </script>
    <style type="text/css">
        .style1
        {
            height: 13px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <table style="width:98%; height:30px" class="table_1" >
    <tr><td><a href="add.aspx">添加婚典规格</a></td></tr>
    </table>
        <table style="width:98%;" class="table_1" >
        
            <tr class="table_2" height="20">
                <td >
                    风格</td>
                <td >
                    规模</td>
                <td >
                    价格</td>
                <td >
                    操作</td>
            </tr>
            
            <%foreach (Com.CMS263.PO.MyStyle style in list)
              { %>
            <tr  class="table_list" id="tr<%=style.Id %>">
                <td>
                   <%=style.Title %></td>
                <td>
                    <%=style.Stylelevel %></td>
                <td>
                   <%=style.Price %></td>
                <td>
                   <a href="photoList.aspx?myStyleId=<%=style.Id %>"> 管理风格图片</a>&nbsp; <a href="View.aspx?id=<%=style.Id %>">修改</a> <a href="#"  onclick="del(<%=style.Id %>)">删除</a></td>
            </tr>
            <%} %>
           
        </table>
    
    </div>
    </form>
</body>
</html>
